package com.itheima.service.store.impl;

import com.itheima.dao.store.MemberDao;
import com.itheima.domain.store.Member;
import com.itheima.factory.DaoInstanceFactory;
import com.itheima.service.store.MemberService;

public class MemberServiceImpl implements MemberService {
    @Override
    public Member findById(String id) {
        MemberDao memberDao = DaoInstanceFactory.getMapper(MemberDao.class);
        return memberDao.findById(id);
    }
}
